package com.example.myapplication.login.view;

import com.example.myapplication.login.model.User;
import com.example.myapplication.login.presenter.LoginPresenter;

/**
 * Created by sd on 2017/12/11.
 */

public interface LoginView {
    String getUserName();
    String getPassword();

    // 显示和隐藏ProgressBar
    void showLoading();
    void hideLoading();

    // 登陆成功或者失败后,返回信息的方法
    void showSuccess(User user);
    void showFailedMsg(String s);

    // 清除数据
    void clearEditText();

    void setPresenter(LoginPresenter presenter);
}
